<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core">


    <p:panel header="JURADO DE ALUMNO" style="border: none;">
        <div align="center">
            <h:form style="border-style: solid; border-color: #069; font-weight: bold; width: 99%">
                <p><h:outputText value="ASIGNACIÓN DE JURADO PARA EL PRACTICANTE" style="font-weight: bold; font-size: 18px; color:#069;"/></p>
                <br/>
                <h:panelGrid columns="2" cellspacing="5" id="panelGridIDddxxT">

                    <h:outputText value="Fecha y Hora de Sustentacíon:"/>
                    <p:calendar locale="es" value="#{practiceProcessBean.diaSustentacion}" pattern="MM/dd/yyyy hh:mm a"/>

                    <h:outputText value="Lugar de Sustentación:"/>
                    <p:inputText value="#{practiceProcessBean.lugarSustentacion}" size="40"/>
                </h:panelGrid>
                <p:separator/>
                <h:outputText value="JURADOS" style="font-weight: bold; font-size: 13px; color:#069;"/>
                <h:panelGrid columns="3" cellspacing="5">

                    <h:outputText value="PRESIDENTE: "/>
                    <p:selectOneMenu value="#{practiceProcessBean.subOne}">
                        <f:selectItem itemLabel="Ing." itemValue="Ing."/>
                        <f:selectItem itemLabel="Lic." itemValue="Lic."/>
                        <f:selectItem itemLabel="Msc." itemValue="Msc."/>
                        <f:selectItem itemLabel="Dr." itemValue="Dr."/>
                        <f:selectItem itemLabel="Ph." itemValue="Ph."/>
                    </p:selectOneMenu>
                    <p:selectOneMenu value="#{practiceProcessBean.presidente}" required="true"
                                     panelStyle="width:300px;" effect="fade" style="width:300px"  
                                     filter="true" filterMatchMode="contains" >

                        <f:selectItem itemValue="" itemLabel="Seleccione un dccente"/>
                        <f:selectItems value="#{practiceProcessBean.listTeacher}" var="teacher"
                                       itemValue="#{teacher}" itemLabel="#{teacher}"/>

                    </p:selectOneMenu>

                    <h:outputText value="SECRETARIO: "/>
                    <p:selectOneMenu value="#{practiceProcessBean.subTwo}">
                        <f:selectItem itemLabel="Ing." itemValue="Ing."/>
                        <f:selectItem itemLabel="Lic." itemValue="Lic."/>
                        <f:selectItem itemLabel="Msc." itemValue="Msc."/>
                        <f:selectItem itemLabel="Dr." itemValue="Dr."/>
                        <f:selectItem itemLabel="Ph." itemValue="Ph."/>
                    </p:selectOneMenu>
                    <p:selectOneMenu value="#{practiceProcessBean.secretario}" required="true"
                                     panelStyle="width: 290px;" effect="fade" style="width:300px"  
                                     filter="true" filterMatchMode="startsWith">

                        <f:selectItem itemValue="" itemLabel="Seleccione un dccente"/>
                        <f:selectItems value="#{practiceProcessBean.listTeacher}" var="teacher"
                                       itemValue="#{teacher}" itemLabel="#{teacher}"/>

                    </p:selectOneMenu>

                    <h:outputText value="VOCAL 1: "/>
                    <p:selectOneMenu value="#{practiceProcessBean.subTree}">
                        <f:selectItem itemLabel="Ing." itemValue="Ing."/>
                        <f:selectItem itemLabel="Lic." itemValue="Lic."/>
                        <f:selectItem itemLabel="Msc." itemValue="Msc."/>
                        <f:selectItem itemLabel="Dr." itemValue="Dr."/>
                        <f:selectItem itemLabel="Ph." itemValue="Ph."/>
                    </p:selectOneMenu>
                    <p:selectOneMenu value="#{practiceProcessBean.vocal1}" required="true"
                                     panelStyle="width: 290px;" effect="fade" style="width:300px"  
                                     filter="true" filterMatchMode="startsWith">

                        <f:selectItem itemValue="" itemLabel="Seleccione un dccente"/>
                        <f:selectItems value="#{practiceProcessBean.listTeacher}" var="teacher"
                                       itemValue="#{teacher}" itemLabel="#{teacher}"/>

                    </p:selectOneMenu>

                    <h:outputText value="VOCAL 2: "/>
                    <p:selectOneMenu value="#{practiceProcessBean.subFour}">
                        <f:selectItem itemLabel="Ing." itemValue="Ing."/>
                        <f:selectItem itemLabel="Lic." itemValue="Lic."/>
                        <f:selectItem itemLabel="Msc." itemValue="Msc."/>
                        <f:selectItem itemLabel="Dr." itemValue="Dr."/>
                        <f:selectItem itemLabel="Ph." itemValue="Ph."/>
                    </p:selectOneMenu>
                    <p:selectOneMenu value="#{practiceProcessBean.vocal2}" required="true"
                                     panelStyle="width: 290px;" effect="fade" style="width:300px"  
                                     filter="true" filterMatchMode="startsWith">

                        <f:selectItem itemValue="" itemLabel="Seleccione un dccente"/>
                        <f:selectItems value="#{practiceProcessBean.listTeacher}" var="teacher"
                                       itemValue="#{teacher}" itemLabel="#{teacher}"/>

                    </p:selectOneMenu>

                </h:panelGrid>
                <p:separator/>
                <h:panelGrid columns="2" cellspacing="5">
                    <h:outputText value="Nº Oficio: "/>
                    <p:inputMask value="#{practiceProcessBean.documentoFormal}"
                                 size="40" required="true"
                                 mask="OFICIO Nº 999-9999 CPPP-FIIS-UNAS" 
                                 label="Documento" title="Documento Formal"/>

                    <h:outputText value="Fecha de emisión: " />
                    <p:calendar locale="es" value="#{practiceProcessBean.diaEmision}"
                                required="true" title="Fecha de emisión"/>
                </h:panelGrid>    

                <p:commandButton value="Guardar" action="#{practiceBean.initCollection()}" update=":panelCenter"
                                 onstart="PF('blockUI').block();" oncomplete="PF('blockUI').unblock();">
                    <f:actionListener binding="#{practiceProcessBean.saveAssignamentJury()}" />
                    <f:setPropertyActionListener value="./content/practice.xhtml" target="#{indexLoginBean.navigation}"/>
                </p:commandButton>
                <br/><br/>

            </h:form>

        </div>
    </p:panel>

</ui:composition>
